package com.njtoyo.taxi.admin.rest.wrapper.business.driver;

import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateTime;
import com.njtoyo.taxi.admin.mapper.master.enums.DriverRegistrationInfoSate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel(value = "司机自主注册审核管理")
public class DriverRegistrationInfoExportWrapper {

    private List<Long> driverRegionIds;
    private List<Long> companyIds;

    @ApiModelProperty(value = "司机运营区ID")
    private Long driverRegionId;

    @ApiModelProperty(value = "公司id")
    private Long companyId;

    @ApiModelProperty(value = "审核状态 0:[审核中],1:[通过],2:[驳回],3:[拒绝],4:[废除]")
    private DriverRegistrationInfoSate state;

    @ApiModelProperty(value = "开始时间")
    @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private DateTime startTime;

    @ApiModelProperty(value = "开始时间")
    @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private DateTime endTime;

    @ApiModelProperty(value = "是否为注册，true为注册，false为更新")
    @NotNull(message = "是否为注册 不能为空")
    private Boolean isRegister;

}
